Skip to content

Conversation

@rockhero1234
Copy link
Contributor

No description provided.

android:layout_gravity="center"
android:layout_marginStart="10dp"
android:gravity="center"
android:letterSpacing="0.09"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

android:layout_marginStart="10dp"
android:gravity="center"
android:letterSpacing="0.09"
android:textColor="?attr/black"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? This does not match the other buttons color at all.

tools:ignore="RtlSymmetry"
android:letterSpacing="0.09"
android:textAllCaps="false"
android:textColor="?attr/black"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue.

tools:text="69m remaining"
android:textStyle="bold"
tools:ignore="RtlSymmetry"
android:letterSpacing="0.09"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue.

observeNullable(viewModel.movie) { data ->
resultBinding?.apply {
resultPlayMovie.isVisible = data is Resource.Success
resultPlayMovie.isVisible = data is Resource.Success && (viewModel.resumeWatching.value == null)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it could be a race condition. Please do not do logic that depends on two different values.

@rockhero1234
Copy link
Contributor Author

rockhero1234 commented Oct 19, 2025

@fire-light42 I think previously fixes are not that good. Making clickable and focusable to false solved click issue i didn't noticed that before, and moving watching observable below movie solved play movie visibility issue.


(data as? Resource.Success)?.value?.let { (text, ep) ->
resultPlayMovie.setText(text)
// resultPlayMovie.setText(text)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that setText may change visibility here, but it is required that the text of resultPlayMovie is set as otherwise it will say "Play Movie" on both torrents and livestreams.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could manually do the .toStringNull here if visibility is not what you want.

)
return@setOnLongClickListener true
}
resultResumeSeriesButton.setOnLongClickListener {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unable to trigger this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to place this somewhere else given that no series will be a valid movie?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's only for movie

@fire-light42
Copy link
Collaborator

moving watching observable below movie solved play movie visibility issue.

That screams race condition to me, do not rely upon the execution order of observe. Observe may trigger in any order, so place resultPlayMovie in a dummy header view if you want to change the visibility from two different observables.

@rockhero1234
Copy link
Contributor Author

@fire-light42 did changes

@fire-light42 fire-light42 merged commit b56e858 into recloudstream:master Oct 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants